﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="organization_type_edit.aspx.cs" Inherits="EDP.Application.Web.Organization.organization_type_edit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel_main" runat="server" />
        <f:HiddenField ID="tb_positionId" runat="server" />
        <f:Panel ID="panel_main" Margin="0" BodyPadding="0" runat="server" ShowBorder="false" ShowHeader="false" AutoScroll="true" Layout="Region">
            <Items>
                <f:SimpleForm ID="form_content" runat="server" ShowBorder="false" ShowHeader="false" Margin="0" BodyPadding="10" LabelAlign="Right" LabelWidth="85"
                    AutoScroll="false" RegionPosition="Left" Width="330" Layout="Column">
                    <Items>
                        <f:TextBox ID="tb_name" runat="server" Label="组织类型名称" BindName="Name" Margin="0" ColumnWidth="100%" ShowRedStar="true" />
                        <f:TextBox ID="tb_number" runat="server" Label="组织类型编号" BindName="Numbers" Margin="10 0 0 0" ColumnWidth="100%" ShowRedStar="true" EmptyText="2-20位字母或数字" />
                        <f:TextBox ID="tb_createUser" runat="server" Label="创建人" BindName="CreateUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_craeteTime" runat="server" Label="创建时间" BindName="CreateTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyUser" runat="server" Label="修改人" BindName="ModifyUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyTime" runat="server" Label="修改时间" BindName="ModifyTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextArea ID="tb_remark" runat="server" Label="描述" BindName="Remarks" Margin="10 0 0 0" ColumnWidth="100%" Height="299" />
                    </Items>
                </f:SimpleForm>
                <f:Grid ID="grid_List" runat="server" Title="职务列表" DataKeyNames="ID,PositionId" ShowHeader="false" RegionPosition="Center" Margin="10 10 0 0" AllowSorting="false" AllowPaging="false" EnableCheckBoxSelect="false" OnRowCommand="grid_List_RowCommand">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_position_add" runat="server" Text="添加职务" Icon="Add" Margin="0 10 0 0" EnablePostBack="false" />
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="PositionName" ExpandUnusedSpace="true" HeaderText="职务名称" />
                        <f:BoundField DataField="PositionTypeName" Width="120" HeaderText="职类" />
                        <f:LinkButtonField ColumnID="lb_delete" Width="30" CommandName="delete" CommandTitle="删除职务" ToolTip="删除" Icon="Delete" TextAlign="center" />
                    </Columns>
                </f:Grid>
            </Items>
            <Toolbars>
                <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                    <Items>
                        <f:Button ID="btn_save" runat="server" Text=" 保 存 " Icon="Disk" Margin="0 10 0 0" OnClick="btn_save_Click" />
                        <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0 10 0 0" EnablePostBack="false" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>
        <f:Window ID="win_selectPosition" runat="server" Target="Parent" OnClose="win_selectPosition_Close" />
    </form>
</body>
</html>
